package com.qiyu.tech.task.futurev2;

/**
 * future接口详情信息
 *
 * @Author idea
 * @Date created in 4:06 下午 2020/12/1
 */
public interface Future<T> {

    boolean isCancel();

    T get() throws InterruptedException;

    T get(long timeOut) throws InterruptedException;

    boolean cancel();

    boolean isDone();
}
